package poker_sim;

public class Player {
    
    public CardCollection HandCards;
    private String Name;
    private int Score;
    public HandRanking HandRank = HandRanking.DEFAULT;
    public UI Interface;
    

    public Player(String name, UI _interface) {
        Name = name;
        Interface = _interface;
        HandCards = new CardCollection(2, Interface.vHandCard);
        HandCards.LoadPanel(Interface.HandRankViewer1);
    }

    public void Setname(String name) {
        Name=name;
    }
    
    public String Getname() {
        return Name;
    }

    public void Setscore(int value) {
        Score = value;
    }
    
    public void AddScore(int value)
    {
        Score += value;
    }

    public int Getscore() {
        return Score;
    }

    public void SetHand(Card card, Card card2) {
        HandCards.Reset();
        HandCards.AddCard(card);
        HandCards.AddCard(card2);        
    }

    public Card[] GetHand() {
        
        return HandCards.card;

    }

}
